<?
$users = $this->users;
?>
<div class="content-box">

    <div class="content-box-header">
        <h3>Пользователи</h3>
        <ul class="content-box-tabs">
            <li><a class="default-tab" href="#tab1">Таблица</a></li>
        </ul>
        <div class="clear"></div>
    </div>
    <div class="content-box-content">
        <div class="tab-content default-tab" id="tab1">
            <table class="table table-striped">
                <thead>
                <tr>
                    <th>#</th>
                    <th>Email</th>
                    <th>Name</th>
                    <th></th>
                </tr>

                </thead>
                <? foreach ($users as $user): ?>
                <tr>
                    <td><?= $user['id'] ?></td>
                    <td><?= $this->escape($user['email']); ?></td>
                    <td><?= $this->escape($user['name']); ?></td>
                    <td>
                        <a href="/admin/user/view/id/<?= $user['id'] ?>">Просмотр</a>
                        <a href="/admin/user/ad/id/<?= $user['id'] ?>">Объявления</a>
                        <a href="/admin/user/comment/id/<?= $user['id'] ?>">Комментарии</a>
                    </td>
                </tr>
                <? endforeach; ?>
            </table>
        </div>
    </div>
</div>